package y2017.m10.d19;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;

public class FileDir {
    public static void main(String[] args) {
        File ff = new File(".");
        String[] list = ff.list();
        if (list != null) {
            ArrayList<String> names = new ArrayList<>(Arrays.asList(list));
            for (String name : names) {
                System.out.println(name);
            }
        }
        System.out.println(ff.getAbsolutePath());
    }
}
